package com.sunny.myproject.system.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;


/**
 * 菜单类
 * @author sunny_nie
 *
 */
@Entity
@Table(name="SS_MENU")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Menu extends IdEntity{

	private String name;
	private String status;
	private String url;
	private Menu father;
	private String top;
	
	public String getTop() {
		return top;
	}
	public void setTop(String top) {
		this.top = top;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
	@ManyToOne(targetEntity=Menu.class)
	public Menu getFather() {
		return father;
	}
	public void setFather(Menu father) {
		this.father = father;
	}
	
	
}
